/*********************************************
*		
*		File Name : Main.java
*		Author    : HuangYao
*		Email     : huangyaobyte@gmail.com
*		Date      : Feb 4, 2014
*		
*********************************************/
/*
*    
*/



package nsg2;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.beans.PropertyVetoException;

import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JMenuBar;
import javax.swing.UIManager;

import nsg2.swing.MainInterFrame;
import nsg2.swing.MainMenuBar;

import org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper;

public class Main extends JFrame{
	private JMenuBar menuBar = new MainMenuBar();
	private JDesktopPane jdp = new JDesktopPane();
	public Main(){
		this.setContentPane(jdp);
		this.setJMenuBar(menuBar);
	}
	
	public static void main(String[] args){
		//加载BeautyEye，并进行一些配置
		try {
			UIManager.put("RootPane.setupButtonVisible", false);
			BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.osLookAndFeelDecorated;
	        org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		Main main = new Main();
		main.setDefaultCloseOperation(EXIT_ON_CLOSE);
		main.setTitle("nsghnust---develop adition");
		Dimension d = Toolkit.getDefaultToolkit().getScreenSize();  
        main.setSize(d.width, d.height);  
		main.setVisible(true);
	}
}
